package com.lxn.course.service;

import com.lxn.course.domain.Course;
import com.baomidou.mybatisplus.service.IService;
import com.lxn.course.dto.CourseSaveDTO;
import com.lxn.course.query.CourseQuery;
import com.lxn.doc.CourseDoc;
import com.lxn.hrm.util.PageList;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hwerth
 * @since 2020-02-22
 */
public interface ICourseService extends IService<Course> {

    void saveOrUpdate(CourseSaveDTO courseSaveDTO);

    //课程上线
    void onLineCourse(Long id);

    //课程下线
    void offLineCourse(Long id);

    PageList<CourseDoc> queryCourses(CourseQuery courseQuery);
}
